﻿<%@ Page Language="C#" MasterPageFile="~/Theme/Stander/Stander.master" AutoEventWireup="true" CodeFile="OrderList.aspx.cs" Inherits="Bill_OrderList" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<h2>订单列表</h2>
<asp:GridView ID="OrderListGridView" DataKeyNames="Id" runat="server" CssClass="normal mouseOver"
    DataSourceID="OrderListDataSource" AutoGenerateColumns="False">
    <Columns>
        <asp:HyperLinkField DataNavigateUrlFields="Id" DataNavigateUrlFormatString="~/Bill/MediaOrders.aspx?id={0}"
            Text="媒介订单" />
        <asp:TemplateField HeaderText="处理状态">
            <ItemTemplate>
                <span class="audit"><%# Formater.GetStateText(Eval("StateValue"))%>
                </span>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="播放版本" SortExpression="PlayVersions">
            <ItemTemplate>
                <%# Formater.PlayVersions(Eval("PlayVersions") as string[]) %>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:HyperLinkField DataNavigateUrlFields="MediaId"
            DataNavigateUrlFormatString="~/Media/Media.aspx?id={0}"
            DataTextField="MediaName" HeaderText="媒介"/>
        <asp:TemplateField HeaderText="广告周期">
            <ItemTemplate>
                <asp:Label ID="Label1" runat="server" Text='<%# Eval("StartDate", "{0:yyyy-M-d}") +"~"+ Eval("EndDate", "{0:yyyy-M-d}") %>'></asp:Label>
            </ItemTemplate>
        </asp:TemplateField>
    </Columns>
    <EmptyDataTemplate>
        暂无订单信息.
    </EmptyDataTemplate>
</asp:GridView>
<csla:CslaDataSource ID="OrderListDataSource" runat="server" 
    TypeName="Active.Core.OrderList, Active.Core"
    TypeSupportsPaging="False" TypeSupportsSorting="False" OnSelectObject="OrderListDataSource_SelectObject">
</csla:CslaDataSource>
<webdiyer:aspnetpager id="aspnetPager" runat="server" OnPageChanged="aspnetPager_PageChanged"
    PageSize="15"></webdiyer:aspnetpager>
</asp:Content>

